let uu = document.querySelector('.uu')
let foot = document.querySelector('.footer1>div>b:nth-of-type(3)')
let span = document.querySelector('span')
fetch('http://chst.vip:1234/api/getsitenav')
    .then(body => body.json())
    .then(res => {
        console.log(res);
        let arr = res.result;
        console.log(arr);
        let domStr = ''
        arr.forEach(item=>{
            domStr += `<li>
            <img src="${item.navImg}">
            <b>${item.navTitle}</b>
            </li>`
            uu.innerHTML = domStr
        })
    })
    span.onclick = function(){
        location.href = "./../index.html"
    }
    foot.onclick=function(){
        location.href = "./../index.html"
    }